package com.auto.sns.core.action;

import java.util.List;

import com.auto.sns.core.util.CoreUtil;
import com.system.common.BaseAction;

/**
 * 任务中心
 * @author wushihua
 *
 */
public class SnsCoreRoleCenterAction extends BaseAction {
	/**
	 * 
	 */
	private static final long serialVersionUID = -366577558747688905L;

	public String roleCenterInfo(){
		//今日任务
		List todayRoleList = CoreUtil.getTodayRoleListInfo();

		//热门话题
		List popTopicList = CoreUtil.getPopTopicListInfo();
		
		//关注话题
		List attentionTopicList = CoreUtil.getAttentionTopicListInfo();
		
		//任务个数
		String roleCount = CoreUtil.getRoleCount();
		
		//消息个数
		String messageCount = CoreUtil.getNewsCount();
		
		this.getRequest().setAttribute("roleCount", roleCount);
		this.getRequest().setAttribute("messageCount", messageCount);
		
		this.getRequest().setAttribute("todayRoleList", todayRoleList);
		this.getRequest().setAttribute("popTopicList", popTopicList);
		this.getRequest().setAttribute("attentionTopicList", attentionTopicList);
		return "success";
	}
}
